<layout name="master" />
<ul class="breadcrumb no-border no-radius b-b b-light pull-in">
    <li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
    <li><a href="#">子分类管理</a></li>
    <li><a href="#">添加子分类</a></li>
</ul>
<div class="m-b-md">
    <h3 class="m-b-none">添加子分类</h3>
</div>
<div class="row">
    <div class="col-sm-12">
        <section class="panel panel-default">
            <header class="panel-heading font-bold">子分类</header>
            <div class="panel-body">
                <form role="form" action="" method="post">
                    <div class="form-group">
                        <label>子分类名称</label>
                        <input type="text" class="form-control" name="cname" placeholder="请输入子分类名称" value="">
                    </div>
                    <div class="form-group">
                        <label>父级分类</label>
                            <select class="js-example-basic-single form-control" name="pid">
                                <option value="{$classData['cid']}">{$classData['cname']}</option>
                            </select>
                    </div>
                    <div class="form-group">
                        <label>排序</label>
                        <input type="text" class="form-control" name="csort" placeholder="输入排序，整数" value="">
                    </div>
                    <div class="form-group">
                        <label>所属类型</label>
                        <select class="js-example-basic-single form-control" name="tid">
                            <option value="{$typeData['tid']}">{$typeData['tname']}</option>
                        </select>
                    </div>
                    <button type="submit" class="btn btn-sm btn-default">保存</button>
                </form>
            </div>
        </section>
    </div>
</div>
<script>
    function controller($scope, $, _){
    }
</script>
